import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueRouter from 'vue-router';
import VueCookies from 'vue-cookies';
import axios from 'axios';
import NutUI from '@nutui/nutui';
import '@nutui/nutui/dist/nutui.css';
Vue.prototype.$axios = axios; // axios不能使用use axios赋值给$axios
axios.defaults.baseURL = 'http://www.332211.top:8888';  //定义axios url固定头
Vue.prototype.$url='http://www.332211.top:8888/'
// axios.defaults.baseURL = 'http://localhost:8888';  //定义axios url固定头
// Vue.prototype.$url='http://localhost:8888/'
NutUI.install(Vue);


const RouterConfig = {
    routes: router
};
Vue.use(VueCookies)
Vue.use(VueRouter);



Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: function (h) { return h(App) }
}).$mount('#app')
